<template>
    <teleport to="body">
        <div class="_loading" v-if="isShow">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </teleport>
</template>

<script>
import { useLoadingStore } from '@/stores/loading'
import { computed } from 'vue'

export default {
    setup() {
        const loadingStore = useLoadingStore()
        const isShow = computed(() => loadingStore.isShow)

        return {
            isShow
        }
    }
}
</script>

<style lang="scss">
@use './style.scss';
</style>
